<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?><link rel="stylesheet" href="/static/css/money.css">
<div class="user-body">
  	<div class="body-content">
      <div class="body-title">
        <?php echo lang('money_coin_fill');?>      </div>

      <div class="coins">
      	
<?php
foreach ($coins as $v) {
?>      	<a 
<?php
	if ($coin['id'] == $v['id']) {
?>class="on"<?php
	}

?> href="<?php echo site_url('into/index');?>?cid=<?php echo $v['id'];?>" class="coin-tab"><?php echo $v['en_name'];?></a>
      	<?php
}

?>      	<div class="clear"></div>
      </div>

      <div class="form">
      	<table cellspacing=0 cellpadding=0 border=0>
      		<tr><th><?php echo lang('money_into_address');?>：</th><td><strong class="address">
<?php
if ($address) {
?><?php echo $address;?><?php
}
else {
?><?php echo lang('money_into_address_no');?><?php
}

?></strong></td></tr>
      	</table>
      </div>
      
      <div class="notice">
      	<h3><?php echo lang('money_into_notice');?></h3>
      	<p><?php echo str_replace('
', '<br/>', $cfg['xnb_fill_notice']);?></p>
      </div>
      
      <div class="list">
      	<h3><?php echo lang('money_into_list');?></h3>
      	<table cellspacing=0 cellpadding=0 border=0>
			<thead>
				<tr>
					<th>ID</th>
					<th><?php echo lang('money_into_date');?></th>
					<th><?php echo lang('money_into_num');?></th>
					<th><?php echo lang('money_into_address');?></th>
					<th>状态</th>
				</tr>
			</thead>
			<tbody>
			    
<?php
foreach ($list as $v) {
?>				<tr>
					<td><?php echo $v['id'];?></td>
					<td><?php echo date('Y-m-d H:i', $v['add_time']);?></td>
					<td><?php echo $v['num'];?></td>
					<td><?php echo $v['address'];?></td>
					<td>
<?php
	if ($v['status'] == 0) {
?>确认中<?php
	}
	else {
?>已成功<?php
	}

?></td>
				</tr>
				<?php
}

?>			</tbody>
		</table>
		<div class="page"><?php echo $page;?></div>
		
<?php
if (!$list) {
?>		<div class="not-list">
			<i class="fa fa-ban"></i>
			<span><?php echo lang('user_not_list');?></span>
		</div>
		<?php
}

?>		<div class="clear"></div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<script>
$(function(){
	$('.cancel-btn').single('<?php echo site_url('into/cancel');?>');
	$('#status').change(function(){
		$.cookie('select_status',$(this).val());
		location.reload();
	});
	
});
</script>